Developer Documentation
PATHJava Developer Documentation > Mac OS Runtime for Java > JManager > Programming With JManager


Runtime Session Options

When instantiating a Java runtime session, you can specify certain attributes using the JMRuntimeOptions mask.

enum JMRuntimeOptions {
    eJManager2Defaults      = 0,

    eUseAppHeapOnly         = (1 << 0),
    eDisableJITC            = (1 << 1),
    eEnableDebugger         = (1 << 2),
    eDisableInternetConfig  = (1 << 3),
    eInhibitClassUnloading  = (1 << 4),

    eJManager1Compatible = (eDisableJITC | eDisableInternetConfig)
};

Constant descriptions

eJManager2Defaults
The default group of settings. No mask attributes are set (application and temporary memory allowed, JITC enabled, debugger disabled, and so on).
eUseAppHeapOnly
When this bit is set, the Java runtime session only uses application heap memory (as opposed to temporary memory).
eDisableJITC
When this bit is set, the MRJ Just In Time Compiler is disabled.
eEnableDebugger
You should set this bit if you want to use any Java runtime debuggers.
eDisableInternetConfig
When this bit is set, InternetConfig is disabled (no default proxy server information can be obtained).
eInhibitClassLoading
When this bit is set, unreferenced classes are kept in memory (that is, they are not garbage-collected).
eJManager1Compatible
This mask disables the JITC and InternetConfig, which makes the session compatible with JManager 1.0 functions.

You can choose one of the two preset masks or specify your own, depending on your needs.


© 1998 Apple Computer, Inc. — (Last Updated 3 Dec 98)